<template>
  <div style="width: 200px">
    <el-menu
      style="height: calc( 100vh - 70px )"
      default-active="CreateTable"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>系统管理</span>
        </template>
        <el-menu-item index="Home">用户管理</el-menu-item>
        <el-menu-item index="CreateTable" href>动态表单</el-menu-item>
      </el-submenu>
    </el-menu>
  </div>
</template>

<script>
  export default ({
    name: "Aside",
    components: {},
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  })
</script>


